-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated deprecated CPanel calls #2184
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You really should not have done everything in 1 go. I'd encourage you to move the Sandbox tool changes to a separate Pull Request. It makes reviewing changes easier.
That being said, this PR has plenty of issues that needs addressing before it can be merged.
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/editentity.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/axis.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/axis.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/axis.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/button.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/button.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/button.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/duplicator.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/material.lua
Outdated
Show resolved
Hide resolved
Understood. I'll concentrate this very PR on the Sandbox tool changes for now.
Thank you for the return, I'll proceed to the changes tomorrow. |
4cfeb14
to
da65480
Compare
Hi @robotboy655, I've made some changes to the PR, according to what you advised:
It should be better now, feel free to review and suggest more modifications. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's a tip:
Use the "Resolve Conversation" buttons on the requested changes, so you and me both can keep track of what was addressed and what wasn't yet. It also reduces the height of this web page.
There also should be a button to request review once you have done all the changes you wanted to.
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/eyeposer.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/camera.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/balloon.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/eyeposer.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/faceposer.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/muscle.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/pulley.lua
Outdated
Show resolved
Hide resolved
garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/colour.lua
Outdated
Show resolved
Hide resolved
Hello @robotboy655 . I have pushed the changes you requested, and marked the points as resolved. Don't hesitate to suggest more changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I have fixed up the remaining issues, seems to be good now.
Thank you very much for your time and your professionalism! As you advised, I'll do the second part of the "deprecation-update" in a separate pull request, in the next days. |
Hello everyone, I hope you're doing fine. :)
I've noticed base Garry's Mod uses the
AddControl
function for the UI panel creation.To quote Garry himself in here:
Thus, I took the time to update all the
AddControl
calls with their non-deprecated counterparts (moreover, it should improve performance).I did an extensive testing to make sure it doesn't break anything, and it works flawlessly (but of course, feel free to check, I may have made mistakes ;).